Class RelativeUndirectedBitLength
java.lang.Object
edu.claflin.finder.algo.clustering.struct.infomap_struct.RelativeUndirectedBitLength
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoiddoublecalculateNewModule(Map<Node, Integer> ntm) voidvoidvoidstatic RelativeUndirectedBitLengthfromNodeToModule(Graph graph, Map<Node, Integer> nodeToModule) generateNodeToModule(Map<Integer, List<Node>> modules) doubleprivate static doublelog2(double x) static voidvoidsetNodeToModule(Map<Node, Integer> nodeToModule) private static double
-
Field Details
-
g
-
edges
-
nodes
-
nodeToModule
-
totalWeight
private double totalWeight -
relativeWeights
-
moduleWeights
-
moduleExitWeights
-
totalExitWeight
private double totalExitWeight
-
-
Constructor Details
-
RelativeUndirectedBitLength
-
-
Method Details
-
fromNodeToModule
public static RelativeUndirectedBitLength fromNodeToModule(Graph graph, Map<Node, Integer> nodeToModule) -
setNodeToModule
-
calculateNewModule
-
calculateRelativeWeights
public void calculateRelativeWeights() -
calculateTotalWeight
public void calculateTotalWeight() -
calculateModuleWeights
public void calculateModuleWeights() -
getBitLength
public double getBitLength() -
calculateModuleExitWeights
public void calculateModuleExitWeights() -
calculateTotalExitWeight
public void calculateTotalExitWeight() -
generateNodeToModule
-
log2
private static double log2(double x) -
sum
-
main
-